window.onload=function (){
    //获取显示隐藏按钮DOM对象
    let showorhide=document.getElementById('showorhide');
    //获取订单明细DOM对象
    let detailedBox=document.getElementById('detailedBox')
    //设置默认订单明细隐藏
    detailedBox.style.display='none'
    showorhide.onclick=function () {
        //判断订单明细DOM状态
        detailedBox.style.display=detailedBox.style.display=='none'?'block':'none';
    }
}